<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>lib/vfs/utilvfs.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/lib.html'>lib</a>/<a href='../files/lib--vfs.html'>vfs</a>/utilvfs.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/lib.html'>lib</a>/<a href='../files/lib--vfs.html'>vfs</a>/utilvfs.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 lib/vfs/utilvfs.h'  /> */</em>
<hr />
<h2 class='header'><a href='../J/utilvfs.h.html' title='Multiple included from 21 places.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 
<a id='L2' name='L2'></a>   2 <em class='comment'>/**</em>
<a id='L3' name='L3'></a>   3 <em class='comment'> * \file</em>
<a id='L4' name='L4'></a>   4 <em class='comment'> * \brief Header: Utilities for VFS modules</em>
<a id='L5' name='L5'></a>   5 <em class='comment'> * \author Miguel de Icaza</em>
<a id='L6' name='L6'></a>   6 <em class='comment'> * \date 1995, 1996</em>
<a id='L7' name='L7'></a>   7 <em class='comment'> */</em>
<a id='L8' name='L8'></a>   8 
<a id='L9' name='L9'></a>   9 <em class='sharp'>#ifndef</em> <a href='../S/lib--vfs--utilvfs.h.html#L10' title='Defined at 10 in lib/vfs/utilvfs.h.'>MC_VFS_UTILVFS_H</a>
<a id='L10' name='L10'></a>  10 <em class='sharp'>#define</em> <a href='../S/lib--vfs--utilvfs.h.html#L9' title='Referred from 9 in lib/vfs/utilvfs.h.'>MC_VFS_UTILVFS_H</a>
<a id='L11' name='L11'></a>  11 
<a id='L12' name='L12'></a>  12 <em class='sharp'>#include</em> &lt;sys/stat.h&gt;
<a id='L13' name='L13'></a>  13 
<a id='L14' name='L14'></a>  14 <em class='sharp'>#include</em> "<a href='lib--global.h.html'>lib/global.h</a>"
<a id='L15' name='L15'></a>  15 <em class='sharp'>#include</em> "<a href='lib--vfs--path.h.html'>path.h</a>"
<a id='L16' name='L16'></a>  16 
<a id='L17' name='L17'></a>  17 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L18' name='L18'></a>  18 
<a id='L19' name='L19'></a>  19 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L20' name='L20'></a>  20 
<a id='L21' name='L21'></a>  21 <em class='comment'>/** Bit flags for vfs_url_split()</em>
<a id='L22' name='L22'></a>  22 <em class='comment'> *</em>
<a id='L23' name='L23'></a>  23 <em class='comment'> *  Modify parsing parameters according to flag meaning.</em>
<a id='L24' name='L24'></a>  24 <em class='comment'> *  @see vfs_url_split()</em>
<a id='L25' name='L25'></a>  25 <em class='comment'> */</em>
<a id='L26' name='L26'></a>  26 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L27' name='L27'></a>  27 <em class='brace'>{</em>
<a id='L28' name='L28'></a>  28     <a href='../R/URL_FLAGS_NONE.html' title='Multiple referred from 2 places.'>URL_FLAGS_NONE</a> = 0,
<a id='L29' name='L29'></a>  29     <a href='../R/URL_USE_ANONYMOUS.html' title='Multiple referred from 2 places.'>URL_USE_ANONYMOUS</a> = 1, <em class='comment'>/**&lt; if set, empty *user will contain NULL instead of current */</em>
<a id='L30' name='L30'></a>  30     <a href='../S/lib--vfs--utilvfs.c.html#L248' title='Referred from 248 in lib/vfs/utilvfs.c.'>URL_NOSLASH</a> = 2        <em class='comment'>/**&lt; if set, 'proto://' part in url is not searched */</em>
<a id='L31' name='L31'></a>  31 <em class='brace'>}</em> <a href='../R/vfs_url_flags_t.html' title='Multiple referred from 2 places.'>vfs_url_flags_t</a>;
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L34' name='L34'></a>  34 
<a id='L35' name='L35'></a>  35 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L36' name='L36'></a>  36 
<a id='L37' name='L37'></a>  37 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L38' name='L38'></a>  38 
<a id='L39' name='L39'></a>  39 <strong class='reserved'>int</strong> <a href='../S/lib--vfs--utilvfs.c.html#L106' title='Defined at 106 in lib/vfs/utilvfs.c.'>vfs_finduid</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>);
<a id='L40' name='L40'></a>  40 <strong class='reserved'>int</strong> <a href='../S/lib--vfs--utilvfs.c.html#L138' title='Defined at 138 in lib/vfs/utilvfs.c.'>vfs_findgid</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>);
<a id='L41' name='L41'></a>  41 
<a id='L42' name='L42'></a>  42 <a href='../S/lib--vfs--path.h.html#L54' title='Defined at 54 in lib/vfs/path.h.'>vfs_path_element_t</a> *<a href='../S/lib--vfs--utilvfs.c.html#L232' title='Defined at 232 in lib/vfs/utilvfs.c.'>vfs_url_split</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>, <strong class='reserved'>int</strong> <a href='../Y/default_port.html' title='Multiple used in 4 places.'>default_port</a>, <a href='../S/lib--vfs--utilvfs.h.html#L31' title='Defined at 31 in lib/vfs/utilvfs.h.'>vfs_url_flags_t</a> <a href='../Y/flags.html' title='Multiple used in 420 places.'>flags</a>);
<a id='L43' name='L43'></a>  43 <strong class='reserved'>int</strong> <a href='../S/lib--vfs--parse_ls_vga.c.html#L637' title='Defined at 637 in lib/vfs/parse_ls_vga.c.'>vfs_split_text</a> (<strong class='reserved'>char</strong> *<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>);
<a id='L44' name='L44'></a>  44 
<a id='L45' name='L45'></a>  45 <strong class='reserved'>int</strong> <a href='../S/lib--vfs--utilvfs.c.html#L177' title='Defined at 177 in lib/vfs/utilvfs.c.'>vfs_mkstemps</a> (<a href='../S/lib--vfs--path.h.html#L31' title='Defined at 31 in lib/vfs/path.h.'>vfs_path_t</a> ** <a href='../Y/pname_vpath.html' title='Multiple used in 15 places.'>pname_vpath</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/prefix.html' title='Multiple used in 80 places.'>prefix</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *basename);
<a id='L46' name='L46'></a>  46 <strong class='reserved'>void</strong> <a href='../D/vfs_die.html' title='Multiple defined in 2 places.'>vfs_die</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/msg.html' title='Multiple used in 374 places.'>msg</a>);
<a id='L47' name='L47'></a>  47 <strong class='reserved'>char</strong> *<a href='../S/lib--vfs--utilvfs.c.html#L363' title='Defined at 363 in lib/vfs/utilvfs.c.'>vfs_get_password</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/msg.html' title='Multiple used in 374 places.'>msg</a>);
<a id='L48' name='L48'></a>  48 
<a id='L49' name='L49'></a>  49 <strong class='reserved'>char</strong> *<a href='../S/lib--vfs--utilvfs.c.html#L86' title='Defined at 86 in lib/vfs/utilvfs.c.'>vfs_get_local_username</a> (<strong class='reserved'>void</strong>);
<a id='L50' name='L50'></a>  50 
<a id='L51' name='L51'></a>  51 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--vfs--parse_ls_vga.c.html#L227' title='Defined at 227 in lib/vfs/parse_ls_vga.c.'>vfs_parse_filetype</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/ret_skipped.html' title='Multiple used in 12 places.'>ret_skipped</a>, <a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> * <a href='../Y/ret_type.html' title='Multiple used in 3 places.'>ret_type</a>);
<a id='L52' name='L52'></a>  52 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--vfs--parse_ls_vga.c.html#L293' title='Defined at 293 in lib/vfs/parse_ls_vga.c.'>vfs_parse_fileperms</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/ret_skipped.html' title='Multiple used in 12 places.'>ret_skipped</a>, <a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> * <a href='../Y/ret_perms.html' title='Multiple used in 3 places.'>ret_perms</a>);
<a id='L53' name='L53'></a>  53 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--vfs--parse_ls_vga.c.html#L431' title='Defined at 431 in lib/vfs/parse_ls_vga.c.'>vfs_parse_filemode</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/ret_skipped.html' title='Multiple used in 12 places.'>ret_skipped</a>, <a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> * <a href='../Y/ret_mode.html' title='Multiple used in 6 places.'>ret_mode</a>);
<a id='L54' name='L54'></a>  54 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--vfs--parse_ls_vga.c.html#L454' title='Defined at 454 in lib/vfs/parse_ls_vga.c.'>vfs_parse_raw_filemode</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * <a href='../Y/ret_skipped.html' title='Multiple used in 12 places.'>ret_skipped</a>, <a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> * <a href='../Y/ret_mode.html' title='Multiple used in 6 places.'>ret_mode</a>);
<a id='L55' name='L55'></a>  55 
<a id='L56' name='L56'></a>  56 <strong class='reserved'>void</strong> <a href='../S/lib--vfs--parse_ls_vga.c.html#L662' title='Defined at 662 in lib/vfs/parse_ls_vga.c.'>vfs_parse_ls_lga_init</a> (<strong class='reserved'>void</strong>);
<a id='L57' name='L57'></a>  57 <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a> <a href='../S/lib--vfs--parse_ls_vga.c.html#L678' title='Defined at 678 in lib/vfs/parse_ls_vga.c.'>vfs_parse_ls_lga</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/p.html' title='Multiple used in 2263 places.'>p</a>, <strong class='reserved'>struct</strong> <a href='../Y/stat.html' title='Multiple used in 258 places.'>stat</a> *<a href='../Y/s.html' title='Multiple used in 1155 places.'>s</a>, <strong class='reserved'>char</strong> **<a href='../Y/filename.html' title='Multiple used in 178 places.'>filename</a>, <strong class='reserved'>char</strong> **<a href='../Y/linkname.html' title='Multiple used in 70 places.'>linkname</a>,
<a id='L58' name='L58'></a>  58                            <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> * filename_pos);
<a id='L59' name='L59'></a>  59 <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../S/lib--vfs--parse_ls_vga.c.html#L670' title='Defined at 670 in lib/vfs/parse_ls_vga.c.'>vfs_parse_ls_lga_get_final_spaces</a> (<strong class='reserved'>void</strong>);
<a id='L60' name='L60'></a>  60 <strong class='reserved'>int</strong> <a href='../S/lib--vfs--parse_ls_vga.c.html#L516' title='Defined at 516 in lib/vfs/parse_ls_vga.c.'>vfs_parse_filedate</a> (<strong class='reserved'>int</strong> <a href='../Y/idx.html' title='Multiple used in 120 places.'>idx</a>, <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> * <a href='../Y/t.html' title='Multiple used in 300 places.'>t</a>);
<a id='L61' name='L61'></a>  61 
<a id='L62' name='L62'></a>  62 <em class='comment'>/*** inline functions ****************************************************************************/</em>
<a id='L63' name='L63'></a>  63 <em class='sharp'>#endif</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+63 lib/vfs/utilvfs.h'  /> */</em>
</body>
</html>
